home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 1 / Eagles_Nest_Mac_Collection_Disc_1.TOAST / Apple Menu Items / NisusDA / Nisus DA.rsrc / TEXT_-16000_Nisus Help.txt < prev    next >
Text File  |  1992-09-17  |  10KB  |  383 lines

  1. -- NB: These are partial lists
  2.  for mnemonic purposes only:
  3.  consult manuals for more! --
  4.  
  5. Select (+ ‚åò-OPT for non-contig)
  6.     Word                2-Click
  7.     Sentence    3-Click
  8.     (to end or start of sentence: SH-3-click)
  9.     Line                    OPT-3-Click
  10.     Para                4-Click
  11.     Doc                    5-Click / ‚åò-A    
  12.     Rect                opt-drag
  13.  
  14. Move (+ SH for Extend)
  15.     by char                    rt/left arrow
  16.     by word                    OPT-rt/left
  17.     by line                        up/dn arrow
  18.   by screen            ‚åò-up/dn
  19.     by doc                        OPT-up/dn
  20.     by this para        ‚åò-rt/left
  21.     by next para        ‚åò-ent/ret
  22. (SH + Jump menu extends)
  23.  
  24. Delete (left)
  25.     by char        del
  26.     by word        OPT-del
  27. (OPT + Jump menu deletes)
  28.         [NB: to recover last deleted text,
  29.         choose Copy with nothing selected;
  30.         this puts it on the clipboard]
  31.  
  32. Format
  33.     (Unnamed Rulers)
  34.     all similar paras                ‚åò-change
  35.         (to name all similar unnamed rulers,
  36.         type name in popup menu, ‚åò-<ret>)
  37.     all similar, selected        ‚åò-change
  38.         (changes all similar to first)
  39.     all dependent paras         OPT-change
  40.     change identically                move indent
  41.     change relatively               SH-move indent
  42.  
  43.     (Tabs)
  44.     lead char, this tab            dbl-click leaderbar
  45.     lead char, later tabs    dbl-click tab icon
  46.  
  47.     (Layout)
  48.     in Layout, OPT-margin does not
  49.                 move text
  50.     in Layout, SH-drag does not
  51.                 move other page
  52.  
  53.     (Rulers and Styles)
  54.     Insert Ruler makes an unnamed ruler
  55.         appear
  56.     directly changing a paragraph's format
  57.         causes an Insert Ruler below; pasting
  58.         does not
  59.     choosing a ruler Name with insertion pt
  60.         in paragraph causes an Insert Ruler
  61.         below; doing it with a ruler selected
  62.         does not
  63.     applying a Style with a named ruler
  64.         selected affects all material governed
  65.         by that ruler
  66.     applying a Style with text selected
  67.         affects only selected
  68.         text if no ruler is named; it affects
  69.         whole paragraph if ruler is named
  70.             ‚Äî and furthermore, subsequent
  71.             para gets an Insert Ruler, and, if
  72.             named, the Inserted ruler is named!
  73.  
  74.     to import a ruler, paste it with both
  75.         docs open
  76.     to import a style (and associated ruler),
  77.         apply it with both docs open
  78.     cannot paste a ruler if ruler of same
  79.         name exists; so, to make styles
  80.         conform, change ruler name first,
  81.         then apply with ruler selected
  82.  
  83. Windows
  84.     tile 2                        SH-click in zoom
  85.     tile all                    OPT-click in zoom
  86.     stack                        OPT-SH-click in zoom
  87.     zoom                        dbl-click title bar
  88.     keep inactive        hold ‚åò
  89.     close other        ‚åò-OPT-click this close
  90.     synch scroll    SH scroll
  91.     rev scroll            OPT scroll
  92.     unsplit                        dbl-click split bar
  93.  
  94. Files
  95.     open 2nd window        SH-dbl-click catalog
  96.     open by name                    select, Open Selection
  97.  
  98. Characters
  99.     soft hyphen        ‚åò-hyphen
  100.     soft return            SH-enter
  101.  
  102. Menus
  103.     OPT makes command effect all docs
  104.     OPT-macro/style edits it
  105.     OPT-click clip title for clip menu
  106.     ‚åò-click wind title for windows menu
  107.     OPT-click wind title for macros menu
  108.     SH-cut/copy appends
  109.     SH-paste swaps
  110.     modified menus:
  111.         File: OPT, ‚åò, ‚åò-OPT-SH
  112.         Edit: SH, OPT, SH-OPT
  113.         Tools: all combs of SH, OPT, ‚åò
  114.             (affect find/replace)
  115.         Format: SH
  116.         Size: SH
  117.         Graphics: SH, OPT
  118.  
  119. Locate
  120.     named ruler        SH-select in menu
  121.     hdr, ftr, ftnt    SH-close window
  122.     cursor                        enter
  123.  
  124. Footnotes
  125.     change symbol    SH-click
  126.     change placing    SH-click sep line
  127.  
  128. Graphics
  129.     select all touched  OPT-drag
  130.     restore char graphic  SH-dbl-click
  131.  
  132. Find
  133.     enter ¬∂ or Ô¨Å                        use SH
  134.     clear text attributes  clear both & close
  135.     general help
  136.         find works in loops; in each loop
  137.             a selection is made, and if it fails
  138.             to match a new try is made starting
  139.             outside the selection
  140.         find expressions are evaluated from
  141.             right to left, meaning that a selection
  142.             is made that satisfies each component
  143.             before the next component is looked at
  144.     the metacharacters
  145.         wild
  146.                 .        any exc return
  147.                 :[space]  any ctrl exc return
  148.                 :!        any ctrl exc tab, ret; + hi ascii
  149.                 :@    any ctrl, + hi ascii, + SP; not ret
  150.                 :.        any at all
  151.                 :A    alpha + diacritic + under
  152.                 :a    alpha + diacritic; not under
  153.                 :√Ö    not alpha nor diacritic nor under
  154.                 :√•    not alpha nor diacritic
  155.                 :l    locase alpha + diacritic
  156.                 :u    upcase alpha + diacritic
  157.                 :d    digit
  158.                 :n    alpha + diacritic + digit
  159.                 :N    alpha + diacritic + digit + under
  160.                 :‚àÇ    diacritic + under
  161.                 :√é    not diacritic nor under
  162.                 :o    octal digit
  163.                 :x    hex digit
  164.                 :w    not punctuation
  165.                 :b    space or tab
  166.                 ‚âà        whole word (+ space)
  167.                 [...] any in set of chars and/or ranges
  168.                 [^...]    any not in set
  169.                 :[...]    set can include return
  170.         times
  171.                 * zero or more
  172.                 + one or more
  173.                 - zero or one
  174.                 :* :+ :-        shortest match
  175.         position
  176.                 :s doc start
  177.                 :e doc end
  178.                 ^ para start
  179.                 $ para end
  180.                 :^    line start
  181.                 \<    word start
  182.                 \>    word end
  183.                 :<x    after x
  184.                 :>x    before x
  185.                     [what's looked at is the rtmost
  186.                     part of the insertion point]
  187.         clipboard
  188.                 \CC  current clip
  189.                 \C0    clip 0, etc.
  190.             NB: to use, may need single-
  191.             quotes to force metachar eval
  192.         other chars
  193.                 |    Logical Or
  194.                 &    found str
  195.                 \(...\) parentheses
  196.                 \1...\9 parenth expr
  197.                 \E10...\E63 parenth expr
  198.                     [count from left]
  199.                 \0    null
  200.                 \b    backspace
  201.                 \t    tab
  202.                 \n    linefeed
  203.                 \f    forced pagebreak
  204.                 \r    return
  205.                 \s    space
  206.                 \v    soft return
  207.             else, \ switches to literal
  208.  
  209. Macros
  210.     to copy, include ¬∂ before name
  211.     
  212.     general
  213.         "‚Ķ" strs must be literal
  214.             (for variable, put on clip
  215.                 and use '\CC' etc.)
  216.         for " in str, use ""
  217.         use ' instead to include metas
  218.         use \return to insert fake
  219.                 return into a quote
  220.                 (e.g. to allow ruler in quote)
  221.  
  222.         digit    change clipboard
  223.         :1 "text1" ["text2"]    makes dialog
  224.             box; text1 is prompt; text2 allows
  225.             user to enter text (goes to clip)
  226.         Key [text]
  227.             no quotes! no text = ret; use ASCII
  228.             Table to type arrows etc.
  229.  
  230.     menu commands
  231.         enter name or title:name
  232.         if √∑-able, can take "on" or "off"
  233.         can precede with symbols Shift
  234.             Option Command from ASCII
  235.             Table (hex 19, 20, 17)
  236.         Copy["clipnum"["text"]]
  237.         Cut["clipnum"]
  238.         Paste["clipnum"["text"]]
  239.             (cannot omit clipnum, but can
  240.             leave empty, so you can insert
  241.             a literal string directly)
  242.         Mark Text... ["n1"["n2"]]
  243.             (n2 to mark start and end of
  244.             selection w/ diff names)
  245.         Jump    ["pos1"["pos2"]]
  246.             (pos2 to select from one to
  247.             the other (but not including!!);
  248.             NB a pos can be a name, linenum,
  249.             or "END" (use "1" for start))
  250.     Ruler menu commands
  251.         Left, Center, Right, Full
  252.         L 1, L 1.5, L 2, L 3, L Other
  253.         ¬∂ 1, ¬∂ 1.5, ¬∂ 2, ¬∂ 3, ¬∂ Other
  254.             (after Other, enter val and ret)
  255.  
  256.     Find commands
  257.         Find Next ["exp" ["options"]]
  258.         Find/Replace ["exp1" "exp2" ["options"]]
  259.         where the options are:
  260.             *    use dialog's options
  261.             C    copy text and options into dialog
  262.             -g    normal search
  263.             e        power search
  264.             g        power search +
  265.             w        whole word
  266.             -w        not whole word
  267.             r        reverse (search backwards)
  268.             i        ignore case
  269.             W        wrap
  270.             -W        don't wrap
  271.             G        search all open
  272.             -G        search front doc only
  273.             o        ignore styles in Find
  274.             -o        use styles in Find
  275.             O        ignore styles in Replace
  276.             -O        use styles in Replace
  277.             a        replace all
  278.             l        replace all in selected paras
  279.             s        replace all in selection
  280.             n        with s, select last changed
  281.             I        index, not replace
  282.             t        no dialogs
  283.             v        dialogs
  284.             E        jump to end on failure
  285.             T        terminate macro on failure
  286.             M        search all files on search list
  287.             -M    search current doc only
  288.             X        with Find Next, puts pathnames
  289.                 from search list onto clip
  290.  
  291. Programming Language
  292.     //        comment
  293.     label:        label
  294.     +        concatenate strs
  295.     -        remove first instance of str2
  296.     /        remove every instance of str2
  297.     variables
  298.         DOUBLE    printf() formatting str
  299.         LONG            ditto        [see 32-34 of manual]
  300.         DoubleLock    boolean; if true, forces
  301.             all constants to double-precision
  302.         clipboard    current clip
  303.         SelectWithRuler    boolean; if true,
  304.             selections include ruler just to left
  305.         ReportErrors    boolean; if false,
  306.             suppresses error reporting
  307.     commands
  308.         local x        make caller's x inaccessible
  309.         global x    make x live forever
  310.             (no need to repeat in other macros)
  311.         free x        kill x's var space
  312.         freeLocal, freeGlobal, freeAll
  313.         macroCopy, macroPaste  between
  314.             clip and selection point
  315.         selectRuler(n)    selects ruler governing
  316.             char offset n
  317.         setSelect(n1,n2)        selects char range
  318.         setSelectMore(n1,n2)        builds non-
  319.             contig selections; first one is ignored,
  320.             so start with (0,0)
  321.         goto label
  322.         exit        from macro
  323.         if(E)        if E is true, non-zero, or non-
  324.             empty, then statements on same 
  325.             line will execute; use semi-colon to
  326.             separate statements on same line;
  327.             operators include !, &&, ||, ==, <>,
  328.             <=, >=, etc.
  329.     functions (e.g. cos(num))
  330.         sin, cos, tan, acos, asin, atan
  331.         sinh, cosh, tanh, exp
  332.         ceil    returns next int as float
  333.         floor    returns prev int as float
  334.         div, mod
  335.         fmod(f1,f2)  rem f1/f2
  336.         modf    fractional part
  337.         random        integer
  338.         rrandom(f1,f2)        float betw args
  339.         seed        uses arg to seed later randoms
  340.         CharToNum, NumToChar
  341.         left(str,n)        right(str,n)
  342.         mid(str,startnum,n)
  343.         offset(soughtstr,targetstr)
  344.         upperRoman, lowerRoman    int to str
  345.         fabs (= abs val)
  346.         log, log1
  347.     functions (no arg)
  348.         docName, docPath        of front doc
  349.         dateCreated, lastDateSaved
  350.         timeModified
  351.         charNum, lineNum, PageNum        of
  352.             insertion point
  353.         pageLineNum         lineNum on this page
  354.         endCharNum        char offset to end
  355.         rulerName        governing insertion pt
  356.         rulerStart        char offset
  357.         nextRulerStart
  358.         selectStart, selectEnd        in chars
  359.         numFound        how many found in last find
  360.     arrays
  361.         array must already exist via method
  362.         arrays are 1-based
  363.         [n] addrs absolutely
  364.         [[n]] addrs relative, e.g. [[1]] = next
  365.     methods (syntax: var -> method(arg))
  366.         type    return string naming type of var
  367.         create(n)        n storage spaces at start
  368.         qcreate(n)    n storage spaces at end
  369.         push(E)            adds E to var front
  370.         qpush(E)        adds E to var end
  371.                 NB: these keywords can be used as E
  372.                 to obtain info about current non-contig
  373.                 selection: strings; starts; ends;
  374.                 startends;
  375.                 ints, floats        treats str as number
  376.         pop                        removes and refs first element
  377.         first                    refs without removing
  378.         last                        refs without removing
  379.         size                        reports size
  380.         shuffle                randomizes
  381.         swap(n1,n2)
  382.         error    reports boolean whether last access 
  383.             to var caused error